-- GENERATED SPELL FOR [Yorus Barleybrew] --


function spell0_6166(pUnit, Event) --@Drinking Barleybrew Scalder,n/a--
pUnit:FullCastSpellOnTarget(8554,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6166', 2000, 1)
end

function Sorts_6166(pUnit, Event)
local choix_sorts_6166 = math.random(0, 0)
if choix_sorts_6166 == 0 then
pUnit:RegisterEvent('spell0_6166', 1, 1)
end
end

function mob6166_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6166', math.random(1500, 3000), 1)
end

function mob6166_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6166_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6166_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6166, 1, 'mob6166_Action')
RegisterUnitEvent(6166, 2, 'mob6166_Leave')
RegisterUnitEvent(6166, 3, 'mob6166_Kill')
RegisterUnitEvent(6166, 4, 'mob6166_Die')
